﻿using BIS.Utility.DAL.DataMapper;
using BIS.Utility.Converter;

namespace BIS.Portal.Modules.CMS.Entity
{
    public class ClientCmsArticleSpecicalDisplayAnDisplayEnity : IEntity
    {

        #region Private member

        private int _display_type_id;
        private string _display_type_name;
        #endregion

        #region Pulbic contructor

        public ClientCmsArticleSpecicalDisplayAnDisplayEnity()
        {
        }

        public ClientCmsArticleSpecicalDisplayAnDisplayEnity(int id)
        {
            this._display_type_id = id;
        }

        public ClientCmsArticleSpecicalDisplayAnDisplayEnity(int iDisplay_type_id, string sDisplay_type_name)
        {
            this._display_type_id = iDisplay_type_id;
            this._display_type_name = sDisplay_type_name;
        }


        #endregion

        #region Pulbic properties

        public virtual int Display_type_id
        {
            get
            {
                return _display_type_id;
            }
            set
            {
                _display_type_id = value;
            }
        }

        public virtual string Display_type_name
        {
            get
            {
                return _display_type_name;
            }
            set
            {
                _display_type_name = value;
            }
        }

        #endregion

        #region Implement From IEntity Member

        public void Fill(System.Data.IDataReader reader)
        {
            Display_type_id = Functions.GetInt(reader["display_type_id"]);
            Display_type_name = Functions.GetString(reader["display_type_name"]);
        }
        #endregion

    }
}
